using System;
using Sirenix.OdinInspector;
using Sirenix.Serialization;

namespace BTEditor
{
    [BTDecorator]
    public class Random : Decorator
    {
        public override Type GetNodeType()
        {
            return typeof(NPBehave.Random);
        }

        public override ErrorType GetIsVaild()
        {
            return BelongNode.IsHaveChild ? ErrorType.None : ErrorType.Error;
        }
        
        [HideLabel] [Title("随机值")]   [OdinSerialize]
        [InfoBox("随机值")]
        [MinMaxSlider(0,1)]
        [BTValue(DealType.OnlyUse)]
        private float probability;
    }
}